package com.zyndev.sanchi.controller.product;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;

/**
 * desc :
 * author: 张瑀楠
 * email : zyndev@gmail.com
 * date  : 2017/11/25 上午12:19
 * todo  :
 */
@RequestMapping("product")
@Controller
public class ProductController {


    private static final String STOCK_INDEX = "/product/index";

    /**
     * Modify batch string.
     *
     * @return the string
     */
    @ResponseBody
    @RequestMapping("modifyBatch")
    public String modifyBatch() {
        throw new NotImplementedException();
    }

    /**
     * Syn product string.
     *
     * @return the string
     */
    @ResponseBody
    @RequestMapping("syncProduct")
    public String synProduct() {
        return null;
    }

    @ResponseBody
    @RequestMapping("/modify")
    public String updateone() {
        throw new NotImplementedException();
    }


    @RequestMapping("/search")
    public String search(@RequestParam("searchParam") String abc) {
        throw new NotImplementedException();
    }


    /**
     * Index string.
     *
     * @param index index
     *
     * @return the string
     */
    @RequestMapping("/index")
    public String index(@RequestParam("index") String index) {
        return STOCK_INDEX;
    }

}
